package com.pkk.cloud.support.gateway.limiter.global;

import com.pkk.cloud.support.gateway.limiter.global.properties.GlobalMethodRateLimitProperties;
import com.pkk.cloud.support.gateway.limiter.global.properties.GlobalRateLimitProperties;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * @description: 启用全局过滤限制
 * @author: peikunkun
 * @create: 2020-03-24 10:59
 **/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@EnableConfigurationProperties({GlobalRateLimitProperties.class, GlobalMethodRateLimitProperties.class})
public @interface EnableGlobalLimit {
}
